<div class="wide form">

<?php $form = $this->beginWidget('GxActiveForm', array(
	'action' => Yii::app()->createUrl($this->route),
	'method' => 'get',
)); ?>


	<div class="row">
		<?php echo $form->label($model, 'NOMBRE'); ?>
		<?php echo $form->textField($model, 'NOMBRE', array('maxlength' => 32)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'APELLIDO1'); ?>
		<?php echo $form->textField($model, 'APELLIDO1', array('maxlength' => 32)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'APELLIDO2'); ?>
		<?php echo $form->textField($model, 'APELLIDO2', array('maxlength' => 32)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'TIP_DOC'); ?>
		<?php echo $form->dropDownList($model, 'TIP_DOC', array('1'=>'Cedula de ciudadanía','4'=>'Cedula de extranjeria')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'DOC_ID'); ?>
		<?php echo $form->textField($model, 'DOC_ID', array('maxlength' => 15)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'USERNAME'); ?>
		<?php echo $form->textField($model, 'USERNAME', array('maxlength' => 100)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'FECHA_GRADO'); ?>
		<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model' => $model,
			'attribute' => 'FECHA_GRADO',
			'value' => $model->FECHA_GRADO,
			'options' => array(
				'showButtonPanel' => true,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
; ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'SEDE'); ?>
		<?php echo $form->textField($model, 'SEDE', array('maxlength' => 20)); ?>
	</div>
	
	<div class="row">
		<?php echo $form->label($model, 'TABLA'); ?>
		<?php echo $form->textField($model, 'TABLA', array('maxlength' => 40)); ?>
	</div>

	<div class="row buttons">
		<?php echo GxHtml::submitButton(Yii::t('app', 'Buscar')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->
